import request from '@/utils/request'

// 上传文件
export const uploadFile = data => {
  return request({
    url: '/upload',
    data,
    method: 'POST'
  })
}

// 下载接口
export const downFile = id => {
  return request({
    url: `/download/${id}`,
    responseType: 'blob'
  })
}
